const user = {
	state: {
		userInfo: {},
		address: undefined,
		userSelectData:{},
		userSelectDataJson:{},
	},
	mutations: {
		SET_USERINFO: (state, userInfo) => {
			state.userInfo = userInfo
		},
		SET_ADDRESS: (state, address) => {
			state.address = address
		},
		SET_USERSELECTDATA:(state,data)=>{
			state.userSelectDataJson = data
			console.log(data)
			// let newarr = []
			// if(data.length>0){
			// 	data.forEach((item)=>{
			// 		newarr.push(JSON.parse(item))
			// 	})
			// }
			// state.userSelectData = newarr
			// state.userSelectDataJson = data
			// console.log(state.userSelectData)
			console.log(state.userSelectDataJson)
		},
	},
	actions: {

	},
}
export default user